import java.util.HashSet;
import java.util.Set;

import javax.swing.JFrame;
import javax.swing.JLabel;

public class Test {
	public static void showFrame() { // 显示一个基本的窗口
		JFrame frame = new JFrame("HelloWorldSwing");
		final JLabel label = new JLabel("Hello World");
		frame.getContentPane().add(label);

		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.pack();
		frame.setVisible(true);
	}
	
	public static void testFormate(){
		String s = "2011-08-01 00:00:00";
		System.out.println(s.substring(0, 10));
	}
	
	public static void testSet(){
		Set set = new HashSet();
		set.add("asd");
		set.add("as");
		set.add("asd");
		System.out.println(set.size());
	}
	public static void main(String[] args) {
		testSet();
	}
}
